<template>
	<view class="container">
		<view class="currentView">
			<view :is="currentView"></view>
		</view>
		<view class="footer">
			<text @click="goto('')">首页</text>
			<text @click="goto('Trip')">行程</text>
			<text>圈子</text>
			<text>消息</text>
			<text>我的</text>
		</view>
	</view>
</template>

<script>
	import Trip from '@/pages/trip/index.vue'
	
	export default {
		name: '',
		components: {Trip},
		data() {
			return {
				currentView: ''
			}
		},
		methods: {
			goto (path) {
				//console.log(path);
				//this.$router.replace(path);
				this.currentView = path;
			}
		}
	}
</script>

<style>
	uni-page-body,.container {
		height: 100%;
	}
	.footer {
		position: absolute;
		bottom: 0;
		background-color: #4CD964;
		width: 100%;
		height: 100rpx;
	}
	.currentView {
		background-color: #007AFF;
		height: calc(100% - 100rpx);
		overflow: auto;
	}
</style>
